After successful OAuth2 authentication, retrieve the provider session containing access token, refresh token, and expiration information for the specified provider. To ensure the data isn’t stale this endpoint must be called immediately after the OAuth callback to obtain the tokens. The session is cleared from the database during this call, so subsequent calls will fail without going through the sign-in flow again. It is the user’s responsibility to store the session safely (e.g., in browser local storage).
Bearer authentication with JWT access token. Used to authenticate requests to protected endpoints.
The name of the social provider
apple, github, google, linkedin, discord, spotify, twitch, gitlab, bitbucket, workos, azuread, entraid, strava, facebook, windowslive, twitter Successfully retrieved provider session
OAuth2 provider session containing access and refresh tokens
OAuth2 provider access token for API calls
"ya29.a0AfH6SMBx..."
Number of seconds until the access token expires
3599
Timestamp when the access token expires
"2024-12-31T23:59:59Z"
OAuth2 provider refresh token for obtaining new access tokens (if provided by the provider)
"1//0gK8..."